<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
	<head>
		<meta charset="utf-8">
		<title>首页</title>
		<meta name="renderer" content="webkit">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
		<link rel="stylesheet" href="/static/component/pear/css/pear.css" />
		<link rel="stylesheet" href="/static/admin/css/other/console2.css" />
	</head>
	<body class="pear-container">
	<div class="layui-card">
		<div class="layui-card-body">
			<div class="layui-tab layui-tab-card">
				<ul class="layui-tab-title">
					<li class="layui-this">上传日志</li>
				</ul>
				<div class="layui-tab-content">
					<div class="layui-tab-item layui-show">
						<table style="margin-top: 10px;" id="log-login-table" lay-filter="user-table"></table>
					</div>
				</div>
			</div>
		</div>
	</div>
	</body>

	<script type="text/html" id="log-bar">
		{{#if (d.success == true) { }}
		<button class="pear-btn pear-btn-sm pear-btn-success" lay-event="edit"><i class="layui-icon layui-icon-ok"></i>
			成功</button>
		{{# }else if(d.success == false){ }}
		<button class="pear-btn pear-btn-sm pear-btn-danger" lay-event="error"><i class="layui-icon layui-icon-help"></i>
			异常</button>
		{{# } }}
	</script>

	<script type="text/html" id="log-createTime">
		{{layui.util.toDateString(d.createTime,  "yyyy-MM-dd HH:mm:ss")}}
	</script>

	<script src="/static/component/layui/layui.js"></script>
	<script src="/static/component/pear/pear.js"></script>
	<script>
		layui.use(['table','form','jquery','element'],function () {
			let table = layui.table;
			let form = layui.form;
			let element = layui.element;
   
			let cols = [
				[
					{title: '文件名字', field: 'filename', align:'center'},
					{title: '文件地址', field: 'fileaddress', align:'center'},
					{title: '文件类型', field: 'filetype', align:'center'},
					{title: '上传人', field: 'username', align:'center'},
					{title: '是否可见', field: 'filevisible',align:'center'}
				]
			]

			table.render({
				elem: '#log-login-table',
				url: '/files/userListFile',
				cols: cols ,
				skin: 'line',
				toolbar: false,
                page: true
			});

			

		})
	</script>
</html>
